import {Module} from '@nestjs/common'
import {LoggerService, UseValueService, UseFactory, LoggerClassService} from './logger.service'
@Module({
    providers: [
        {
            provide: 'SUFFIX',
            useValue: 'suffix'
        },
        LoggerClassService,
        {
            provide:LoggerService,
            useClass: LoggerService
        },
        {
            provide: 'StringToken',
            useValue: new UseValueService('prefix')
        },
        {
            provide: 'FactoryToken',
            // inject: ['prefix1', 'SUFFIX'],
            useFactory: () => new UseFactory()
        }
    ],
    exports: [
        'SUFFIX',
        LoggerClassService,
        LoggerService,
        'StringToken',
        'FactoryToken'
    ]
})
export class LoggerModule{

}